<?php
    session_start();
    if(isset($_SESSION['user'])||(isset($_SESSION['admin']))){
        header("Location: ../view/viewhome.php");
    }
?>
<!DOCTYPE html>
<html lang="pt-br">
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" type="text/css" href="css/login.css"/>
        <script type="text/javascript" src="js/jquery-2.1.1.js"></script>
        <script type='text/javascript' src='js/jquery.form.js'></script>
        <script type='text/javascript' src='js/login.js'></script>        
        <title>Login</title>
    </head>
    <body id='login-bg'>
        <div id='loginbox'>
            <div class="mensagem-erro"></div>
                <form id="login-inner" method="post" action="../control/ControleLogin.php">
                    <label>Login:</label>
                    <input type="text" size=25 name="login" id="login" class="login-inp" autofocus/><br/><br/>
                    <label>Senha:</label>
                    <input type="password" size=25 name="senha" id="senha" class="login-inp"/><br/>
                    <p><input type="submit" name="controle" value="Entrar" class="submit-login"/></p>
		</form>
         </div>
    </body>
</html>